@import "../../color.less";

.switch(@second-font-color, @border-color) {
  position: relative;
  display: inline-block;
  height: 22px;
  width: 46px;
  border-radius: 13px;
  transition: all .2s;
  cursor: pointer;
  background: @second-font-color;
  .switch-button {
    position: absolute;
    left: 1px;
    height: 20px;
    width: 20px;
    top: 1px;
    border-radius: 50%;
    background: #ffffff;
    transition: all .2s;
  }
}

.switch-on {
  background: @main-blue-color!important;
  .switch-button {
    left: 25px!important;
  }
}

.switch-night {
  .switch(@second-font-color-night, @border-color-night)
}

.switch-day{
  .switch(@second-font-color-day, @border-color-day)
}
